
FROM openjdk:8-alpine

ENV TZ=Asia/Shanghai

COPY canal.deployer-1.1.5.tar.gz /tmp

RUN mkdir -p /canal-server \
  && tar xvf /tmp/canal.deployer-1.1.5.tar.gz -C /canal-server \
  && rm -rf /canal-server/conf/example \
  && apk add --no-cache bash \
  # && sed -i 's/1>>$base\/logs\/canal\/canal_stdout.log 2>&1 &//' /canal-server/bin/startup.sh \
  && rm -rf /tmp/*

WORKDIR /canal-server

CMD ["java", "-version"]
